<link rel="stylesheet" type="text/css" href="../css/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../css/themes/icon.css">

<div id="panel-workflowDefinition" data-options="border:false;width:100%">
  	<div class="well well-small" style="margin-left: 5px;margin-top: 5px">
		
		<p>
			<span class="badge">提示</span>
			在此你可以对<span class="label-info"><strong>组织功能</strong></span>进行编辑!
		</p>
	</div>
		
    <div id="tb-workflowDefinition" style="padding:2px 0">
		<table cellpadding="0" cellspacing="0"> 
			<tr>
				<td style="padding-left:2px">			
					<a href="javascript:void(0);" class="easyui-linkbutton function-btn" iconCls="icon-add" plain="true" >上传</a>					
				</td>
			</tr>
		</table>
	</div>
	<table id="workflowDefinition-dg" class="easyui-datagrid" 
		data-options="rownumbers:true,
		animate: true,
		collapsible: true,					
		striped:true,
		border:true,
		//singleSelect:false,
		idField: 'id',
		treeField: 'name',					
		fitColumns: true,
		checkOnSelect:true,
		selectOnCheck:true,
		toolbar:'#tb-workflowDefinition'">
		
		<thead>						
			<tr>
				<th field="ck" checkbox="true" ></th>
				<th field="id" width="60" align="center">ProcessDefinitionId</th>
				<th field="deploymentId" width="60" align="center">DeploymentId</th>
				<th field="name" width="60" align="center">名称</th>
				<th field="key" width="100" align="center">KEY</th>
				<th field="version" width="60" align="center">版本号</th>
				<th field="resourceName" width="60" align="center">XML</th>
				<th field="diagramResourceName" width="60" align="center">图片</th>
				<th field="deploymentTime" width="100" align="center">部署时间</th>
				<th field="suspended" width="60" align="center" data-options="
							formatter:function(value,row){
		            		  if(false==row.suspended)
								return '<font color=green>挂起<font>';
		            		  else
		            			return '<font color=red>激活<font>';   
							}">挂起状态</th>		
										
			</tr>
		</thead>
		
	</table>
	
	<div id='workflowDefinition-win'  >
  		
	</div>
	
</div> 

 
<script>
requirejs(['workflowDefinitionModule','domReady!'],function(dept,doc){
	dept.init(doc);
});	
</script>

